package com.fsm.system.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *  角色菜单关系实体类。
 *
 * @author 翻山鸣
 * @since
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "角色菜单关系")
@Table("t_role_menu")
public class TRoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
    * 角色id
    */
    @Column(value = "role_id")
    @Schema(description = "角色id")
    private String roleId;

    /**
    * 菜单id
    */
    @Column(value = "menu_id")
    @Schema(description = "菜单id")
    private String menuId;

    @Column(ignore = true)
    @Schema(description = "菜单列表")
    private List<String> menuIds;

    @Column(ignore = true)
    @Schema(description = "页数")
    private Integer page;

    @Column(ignore = true)
    @Schema(description = "条数")
    private Integer limit;

}
